package com.yjc.drygoods.order.feign;

import com.yjc.common.utils.R;
import com.yjc.drygoods.order.vo.WareLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author yjc
 * @create 2022-09-24 22:45
 */
@FeignClient("drygoods-ware")
public interface WareFeignService {

    @PostMapping("/ware/warespu/hasstock")
    public R getSpuWare(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/warespu/lockStock")
    public R lockStock(@RequestBody WareLockVo wareLockVo);

    @GetMapping("/ware/wareordertask/finish/real/stock/{orderSn}")
    public R finishRealStock(@PathVariable("orderSn") String orderSn);


}
